package com.patterns.prototype.commomPrototyoe.simpleClone;

/**
 * Created by Xiao Yiyun on 2017/4/25.
 */
public class TClass implements Cloneable {

    public TClass() {
        System.out.println("构造函数被执行");
    }

    public TClass clone() {
        TClass tClass = null;
        try {
            tClass = (TClass)super.clone();
        } catch (CloneNotSupportedException e) {
            e.printStackTrace();
        }
        return tClass;
    }
}
